<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>


</head>
<body>
<div style="padding:5px; margin:0px;">
    <ul class="breadcrumb" style="margin:0px; " >
        <li><a href="#">商品类型管理</a></li>
        <li>增加类型</li>
    </ul>
</div>

<form action="${pageContext.request.contextPath}/category?method=add" method="post" accept-charset="UTF-8" enctype="application/x-www-form-urlencoded" class="form-horizontal">
    <!--开始 -->
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-3 control-label">类型名称</label>
                <div class="col-sm-9">
                    <input type="text" name="categoryName" class="form-control input-sm" />
                </div>
            </div>
        </div>
    </div>
    <!--结束 -->
    <div class="row">
        <div class="col-sm-3 col-sm-offset-2">
            <input  type="submit" class="btn btn-success" value="提交"/>
            <a class="btn btn-warning" href="${pageContext.request.contextPath}/category?method=list">返回上一级</a>
        </div>
    </div>
    <c:if test="${not empty msg}">
        <p style="color: red">${msg}</p>
    </c:if>
</form>
</body>
</html>

